
public class Class5 {
			public static void main(String[] args) {
			int a = 1998;
			while (a<=2008) {
			if(a%4==0) {
				System.out.println(a+"");
				a++;
			}else {
				a++;
			}
		}
		}
}

